@extends('layouts.adminlayout')

@section('main')
<section class="content">
    <div class="row">
        <div class="col-xs-6">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Khóa học <small>Thông tin khoá học</small></h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                    {{ Form::open(array('route' => 'manager-courses.store','role'=>'form')) }}
                    <div class="form-group">
                        {{ Form::label('course_name', 'Tên khóa học',array('for'=>'course_name')) }}
                        {{ Form::text('course_name',null,array('class'=>'form-control','required')) }}
                    </div>
                    <div class="form-group">
                        {{ Form::label('course_type', 'Loại khóa',array('for'=>'course_type')) }}
                        <select name="course_type" id="course_type" class="form-control" required="required">
                            <option value="">Chọn</option>
                            <option value="A">A</option>
                            <option value="B">B</option>
                        </select>
                    </div>
                    <div class="form-group">
                        {{ Form::label('start_time', 'Thời gian bắt đầu đăng ký',array('for'=>'start_time')) }}
                        {{ Form::text('start_time',null,array('class'=>'form-control','required', 'id'=>'start_time')) }}
                    </div>
                    <div class="form-group">
                        {{ Form::label('end_time', 'Thời gian kết thúc đăng ký',array('for'=>'end_time')) }}
                        {{ Form::text('end_time',null,array('class'=>'form-control','required', 'id'=>'end_time')) }}
                    </div>
                    <div class="form-group">
                        {{ Form::label('quantity', 'Số lượng',array('for'=>'quantity')) }}
                        <input class="form-control" required="required" type="number" min="0" name="quantity" id="quantity">
                    </div>
                    <div class="form-group">
                        {{ Form::label('fee_courses', 'Học phí',array('for'=>'fee_courses')) }}
                        <input class="form-control" required="required" type="number" min="0" name="fee_courses" id="fee_courses">
                    </div>
                </div><!-- /.box-body -->
                <div class="box-footer">
                    {{ Form::submit('Thêm', array('class' => 'btn btn-info')) }}
                    {{ link_to_route('manager-courses.index', 'Huỷ', null, array('class' => 'btn btn-default')) }}
                    {{ Form::close() }}
                </div>
               <br>
                @if ($errors->any())
                    {{ implode('', $errors->all('<div class="error callout callout-danger">:message</div>')) }}
                @endif
            </div><!-- /.box -->
        </div>
    </div>
</section>
@stop


